﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using Ivy.Common.Framework.Base;
using Ivy.Common.Framework.DataAccess;
using Ivy.Common.Framework.GeneralUtility;

using Ivy.SiteAdministration.Entity;
using Ivy.SiteAdministration.DataAccess;
namespace Ivy.SiteAdministration.UnitTest
{
    [TestClass]
    public class Sys_ActivityTypeMasterDaoTest
    {
        [TestMethod]
        public void Sys_ActivityMasterInsertTestMethod()
        {
            Sys_ActivityMaster _Sys_ActivityMaster = new Sys_ActivityMaster();
            Sys_ActivityMasterDao _Sys_ActivityMasterDao = new Sys_ActivityMasterDao();

            _Sys_ActivityMaster.ActivityCode = "TCode";
            _Sys_ActivityMaster.ActivityName = "TName";
            _Sys_ActivityMaster.ActivityDescription = "Testing";
            _Sys_ActivityMaster.ActivityTypeKey = 1;
            _Sys_ActivityMaster.ActivityTypeName = "Update";
            _Sys_ActivityMaster.ActivityTypeCode = "UPT";

            _Sys_ActivityMaster.Sys_CreatedByID = "1";

            Assert.IsTrue(_Sys_ActivityMasterDao.Insert(_Sys_ActivityMaster));

        }

        [TestMethod]
        public void Sys_ActivityMasterUpdateTestMethod()
        {
            Sys_ActivityMaster _Sys_ActivityMaster;
            Sys_ActivityMasterDao _Sys_ActivityMasterDao = new Sys_ActivityMasterDao();

            _Sys_ActivityMaster = _Sys_ActivityMasterDao.GetByPrimaryKey(49);

            _Sys_ActivityMaster.ActivityCode = "ghCode";
            _Sys_ActivityMaster.ActivityName = "kkName";
            _Sys_ActivityMaster.ActivityDescription = "Testing";
            _Sys_ActivityMaster.ActivityTypeKey = 1;
            _Sys_ActivityMaster.ActivityTypeName = "Update";
            _Sys_ActivityMaster.ActivityTypeCode = "UPT";

            _Sys_ActivityMaster.Sys_CreatedByID = "1";

            Assert.IsTrue(_Sys_ActivityMasterDao.Update(_Sys_ActivityMaster));

        }

        [TestMethod]
        public void Sys_ActivityMasterGetAllTestMethod()
        {

            Sys_ActivityMasterDao _Sys_ActivityMasterDao = new Sys_ActivityMasterDao();

            List<Sys_ActivityMaster> _Sys_ActivityMasterList = _Sys_ActivityMasterDao.GetAll();

        }
    }
}
